package Code;

public class Unit_14 {
	public static int getResult(int iRecordNum, int iType) {
		int x = 0;
		int y = 0;
		
		while(iRecordNum-- > 0) {
			if(iType == 0) {
				x = y + 2;
				break;
			} else if(iType == 1) {
				x = y + 10;
			} else {
				x = y + 20;
			}
		}
		return x;
	}
}
